home *** CD-ROM | disk | FTP | other *** search
/ IRIX Patches 1995 June / SGI IRIX Patches 1995 Jun.iso / 5.3_patches / patchSG0000499 / patchSG0000499.idb / usr / include / abi / X11 / extensions / readdisplaystr.h.z / readdisplaystr.h
Encoding:
C/C++ Source or Header  |  1995-06-12  |  3.0 KB  |  97 lines

  1. /************************************************************
  2. Copyright 1989 by Silicon Graphics, Inc.
  3.  
  4. Permission to use, copy, modify, and distribute this
  5. software and its documentation for any purpose and without
  6. fee is hereby granted, provided that the above copyright
  7. no- tice appear in all copies and that both that copyright
  8. no- tice and this permission notice appear in supporting
  9. docu- mentation, and that the name of SGI not be used in
  10. advertising or publicity pertaining to distribution of the
  11. software without specific prior written permission.
  12. S.G.I. makes no representation about the suitability of
  13. this software for any purpose. It is provided "as is"
  14. without any express or implied warranty.
  15.  
  16. SGI DISCLAIMS ALL WARRANTIES WITH REGARD TO  THIS  SOFTWARE,
  17. INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FIT-
  18. NESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SUN BE  LI-
  19. ABLE  FOR  ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  20. ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,  DATA  OR
  21. PROFITS,  WHETHER  IN  AN  ACTION OF CONTRACT, NEGLIGENCE OR
  22. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION  WITH
  23. THE USE OR PERFORMANCE OF THIS SOFTWARE.
  24.  
  25. ********************************************************/
  26.  
  27.  
  28. #include "readdisplay.h"
  29.  
  30. #define READDISPLAYNAME "ReadDisplay"
  31.  
  32. #define READDISPLAY_MAJOR_VERSION    1    /* current version numbers */
  33. #define READDISPLAY_MINOR_VERSION    0
  34.  
  35. #ifdef _READDISPLAY_SERVER_
  36.  
  37. typedef struct _ReadDisplayInfo {
  38.     int    (* ReadDisplay) (ClientPtr, ScreenPtr, int, int,
  39.             unsigned int, unsigned int, unsigned long);
  40.     void (* ShutDown) (ScreenPtr);
  41.     unsigned long hintsMask;
  42. } ReadDisplayInfoRec, *ReadDisplayInfoPtr;
  43.  
  44. extern void ReadDisplayRegisterInfo(ScreenPtr, ReadDisplayInfoPtr);
  45.  
  46. #endif /* _READDISPLAY_SERVER_ */
  47.  
  48. typedef struct _ReadDisplayQueryVersion {
  49.     CARD8    reqType;        /* always ShapeReqCode */
  50.     CARD8    readDisplayReqType;    /* always X_ReadDisplayQueryVersion */
  51.     CARD16    length B16;
  52. } xReadDisplayQueryVersionReq;
  53. #define sz_xReadDisplayQueryVersionReq    4
  54.  
  55. typedef struct {
  56.     BYTE    type;            /* X_Reply */
  57.     CARD8    data1;            /* minor opcode */
  58.     CARD16    sequenceNumber B16;
  59.     CARD32    length B32;
  60.     CARD16    majorVersion B16;    /* major version READDISPLAY protocol */
  61.     CARD16    minorVersion B16;    /* minor version READDISPLAY protocol */
  62.     CARD32    pad0 B32;
  63.     CARD32    pad1 B32;
  64.     CARD32    pad2 B32;
  65.     CARD32    pad3 B32;
  66.     CARD32    pad4 B32;
  67. } xReadDisplayQueryVersionReply;
  68. #define sz_xReadDisplayQueryVersionReply    32
  69.  
  70. typedef struct _ReadDisplay {
  71.     CARD8    reqType;    /* always ReadDisplayReqCode */
  72.     CARD8    readDisplayReqType;    /* always X_ReadDisplay */
  73.     CARD16    length B16;
  74.     CARD32    src B32;    /* any window on the screen */
  75.     INT16    x B16;
  76.     INT16    y B16;
  77.     CARD16    w B16;
  78.     CARD16    h B16;
  79.     CARD32  hints B32;
  80. } xReadDisplayReq;        
  81. #define sz_xReadDisplayReq    20
  82.  
  83. typedef struct {
  84.     BYTE    type;            /* X_Reply */
  85.     CARD8    data1;            /* minor opcode */
  86.     CARD16    sequenceNumber B16;
  87.     CARD32    length B32;        /* number of words following */
  88.     CARD32    hintsReturn B32;
  89.     CARD32    pad2 B32;
  90.     CARD32    pad3 B32;
  91.     CARD32    pad4 B32;
  92.     CARD32    pad5 B32;
  93.     CARD32    pad6 B32;
  94. } xReadDisplayReply;
  95. #define sz_xReadDisplayReply    32
  96.  
  97.